import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import * as path from "node:path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
  resolve: {
    alias: {
      '@@': path.resolve(__dirname, './src')
    }
  },
  css: {
    preprocessorOptions: {
      scss: {
        // 使用新的 API 选项
        api: 'modern'
      }
    }
  }
});
